package com.hl.card.common.remote.creditCard;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "CARD-PACKAGE-CREDIT")
public interface RemoteCreditCardService {

    @RequestMapping(value = "/back/listAllOrders",method = RequestMethod.GET)
    List<CreditCardOrder> selectRemoteList( @RequestParam(name = "condition") String condition);

    @RequestMapping(value = "/back/selectById",method = RequestMethod.GET)
    CreditCardOrder selectById(@RequestParam(name = "id") Integer id);

}

